/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nxlv2.nomad.businessobjects;

import java.util.Date;

/**
 *
 * @author Nastasia
 */
public class Satisfaction {
    
    private int idBase, idAppli;
    private TauxSatisfaction tauxSatisfaction;
    private String message;
    private Date date;

    public Satisfaction(){}
    /**
     * 
     * @param idBase
     * @param idAppli
     * @param tauxSatisfaction
     * @param message
     * @param date 
     */
    public Satisfaction(int idBase, int idAppli, TauxSatisfaction tauxSatisfaction, String message, Date date) {
        this.idBase = idBase;
        this.idAppli = idAppli;
        this.tauxSatisfaction = tauxSatisfaction;
        this.message = message;
        this.date = date;
    }

    /**
     * 
     * @return idBase
     */
    public int getIdBase() {
        return idBase;
    }

    /**
     * 
     * @param idBase the idBase to set
     */
    public void setIdBase(int idBase) {
        this.idBase = idBase;
    }

    /**
     * 
     * @return idAppli
     */
    public int getIdAppli() {
        return idAppli;
    }

    /**
     * 
     * @param idAppli the idAppli to set
     */
    public void setIdAppli(int idAppli) {
        this.idAppli = idAppli;
    }
    
    /**
     * 
     * @return tauxSatisfaction
     */
    public TauxSatisfaction getTauxSatisfaction() {
        return tauxSatisfaction;
    }

    /**
     * 
     * @param tauxSatisfaction the tauxSatisfaction to set
     */
    public void setTauxSatisfaction(TauxSatisfaction tauxSatisfaction) {
        this.tauxSatisfaction = tauxSatisfaction;
    }

    /**
     * 
     * @return message
     */
    public String getMessage() {
        return message;
    }

    /**
     * 
     * @param message the message to set
     */
    public void setMessage(String message) {
        this.message = message;
    }

    /**
     * 
     * @return date
     */
    public Date getDate() {
        return date;
    }

    /**
     * 
     * @param date the date to set
     */
    public void setDate(Date date) {
        this.date = date;
    }

    /**
     * 
     * @return String
     */
    @Override
    public String toString() {
        return "Satisfaction{" + "tauxSatisfaction=" + tauxSatisfaction + ", message=" + message + ", date=" + date + '}';
    }
    
    public String toJSONString(){
        return "{\"idBase\":\""+ idBase +"\",\"idAppli\":\""+ idAppli +"\",\"tauxSatisfaction\":\""+ tauxSatisfaction.toJSONString() +"\",\"message\":\""+ message +"\",\"date\":\""+ date +"\"}";
    }
}
